package com.neusoft.ysu.npms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.neusoft.ysu.npms.pojo.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 作者：刘金秋
 * @since 2024-06-18
 */
public interface IFarmerService extends IService<Farmer>
{
    Result add(Farmer farmer);
    Result deleteFarmer(Farmer farmer);
    Result updateFarmer(Farmer farmer);
    Result selectAll();
    Result findById(Farmer farmer);
    Integer findByName(Farmer farmer);
    PageInfo getlist(Farmer farmer, int pageNum, int pageSize);
    PageInfo getlist1(FarmerPlus farmerPlus, int pageNum, int pageSize);
    List<Farmer> searchByArea(Farmer farmer);
    List<FarmerRisk> searchRisk(FarmerRisk farmer);
}
